package shujia.day03;

/*
    二维数组语句定义格式2：
        数据类型[][] 数组名 = new 数据类型[m][];

 */
public class Array2Demo2 {
    public static void main(String[] args) {
        int[][] arr1 = new int[3][];
        System.out.println(arr1[0]);
        System.out.println(arr1[1]);
        System.out.println(arr1[2]);

        System.out.println("------------------------");
        int[] arr2 = {1,2,3,4,5};
        int[] arr3 = {1,2,3};
        int[] arr4 = {1,2,3,4,5,6,7,8};
        arr1[0] = arr2;
        arr1[1] = arr3;
        arr1[2] = arr4;
        System.out.println(arr1[0]);
        System.out.println(arr1[1]);
        System.out.println(arr1[2]);

    }
}
